package org.hive.testserver.domain.model;

import java.util.HashMap;
import java.util.Map;

public class ProjectHistory {

	private Map<String,TestHistory> tests = new HashMap<String,TestHistory>();
	
	public ProjectHistory() {
		super();
	}
	
	public TestHistory lookupTestHistoryOrCreate(String testName) {
		TestHistory testHistory = tests.get(testName);
		if (testHistory == null) {
			testHistory = new TestHistory(testName);
			tests.put(testName, testHistory);
		}
		return testHistory;
	}
}
